home *** CD-ROM | disk | FTP | other *** search
- Path: Norway.EU.net!usenet
- From: sb@metis.no (Steinar Bang)
- Newsgroups: comp.lang.c++
- Subject: Re: [Q] same template name with template-arg-list
- Date: 10 Jan 1996 18:11:32 +0100
- Organization: AT&T GIS Norge AS, Horten, Norway
- Sender: sb@balder.metis.no
- Message-ID: <wh7mz03rgb.fsf@balder.metis.no>
- References: <whlong48ht.fsf@balder.metis.no>
- <30F3B61D.1CFBAE39@intellektik.informatik.th-darmstadt.de>
- NNTP-Posting-Host: balder.metis.no
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- In-reply-to: Enno Sandner's message of Wed, 10 Jan 1996 13:50:37 +0100
- X-Newsreader: Gnus v5.0.12
-
- >>>> "ES" == Enno Sandner <enno@intellektik.informatik.th-darmstadt.de> writes:
-
- ES> But you can have sth. similar called 'template specialization'.
- ES> For example the former template could be seen as specialization
- ES> of the latter template:
-
- ES> template<class T,int len> class sequence { ... };
- ES> template<class T> class sequence<T,0> { ... };
-
- Yup. I found this in the ANSI draft (section 14.6), and I tried it in
- gcc 2.7.2... and promptly triggered a compiler bug...:-)
-
- <URL:news:199601101504.QAA29290@balder.metis.no>
-
- Oh well, it'll probably work at some point. For now, I'll just have
- to find a workaround. In any case, this does what I want to do, or
- close enough, anyways.
-
- - Steinar
-